#!/bin/sh

PYTHON=/usr/bin/python

$PYTHON ./virtualenv.py .
cd externals/metakit/builds

echo "Configuring Metakit..."

../unix/configure

echo "Building Metakit..."

make

echo "Installing Metakit python bindings..."

cd ../python
../../../bin/python setup.py install

cd ../../../

echo "Installing zc.buildout..."

bin/easy_install zc.buildout

echo "Running buildout..."

bin/buildout -v

echo "Done. Use bin/packrat to run the application"
